package li.service;

import java.util.List;

import javax.annotation.Resource;

import li.entity.Book;
import li.idao.IBookDao;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class SearchService {

	@Resource
	private IBookDao bookDao;

	public List<Book> bookQueryBookname(String keyword) {
		return bookDao.findOneByBookname(keyword);
	}

	public List<Book> bookQueryAuthorname(String keyword) {
		return bookDao.findOneByAuthorname(keyword);
	}

	public List<Book> bookQueryBookindex(String keyword) {
		return bookDao.findOneByBookindex(keyword);
	}
}
